# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         13.04
# Description:
# Author:       dell
# Date:         2019/4/13
#-------------------------------------------------------------------------------
import fileinput
fileobj = fileinput.input('./file/urls.txt')
print(type(fileobj))
print(fileobj.readline().rstrip())
for line in fileobj:
    print(fileobj.lineno(),':',line)
    if  line != '':
        print(fileobj.lineno(),':',line )
    else:
        print(fileobj.filename())